import { NodeApi } from "../utils/config";
import { ResInterface } from "../interface/request.interface";
import { Request } from "../utils/request";

// node接口-手相分析验证
export const ApiVerifyPalm = async (): Promise<ResInterface> => {
  return await Request({
    url: `${NodeApi}/v1/api/palm/verify`,
  })
}

// node接口-手相分析
export const ApiPalmDivince = async ({
  data = {},
}): Promise<ResInterface> => {
  return await Request({
    url: `${NodeApi}/v1/api/palm`,
    data,
  })
}

// node接口-手相分析详情
export const ApiPalmDetail = async ({
  data = {},
}): Promise<ResInterface> => {
  return await Request({
    url: `${NodeApi}/v1/api/palm/detail`,
    data,
  });
}